class  DingClient{
    static clientConfig(param,callback){
        	dd.config({
			agentId:param.agentId,
			corpId:param.corpId,
			nonceStr:param.nonceStr,
			signature:param.signature,
			type:param.type,
			timeStamp:param.timeStamp,
			jsApiList:[ 'runtime.info',

                        'biz.contact.choose', 'device.notification.alert',

                        'device.notification.prompt', 'biz.ding.post','runtime.permission.requestAuthCode','device.notification.showPreloader',

                        'biz.util.openLink','biz.util.open','biz.ding.post','biz.util.scanCard','biz.navigation.setTitle','ui.pullToRefresh.enable','biz.chat.pickConversation','biz.util.scan','device.accelerometer.watchShake','biz.map.locate','biz.util.chosen','biz.contact.complexChoose'] // 必填，需要使用的jsapi列表，注意：不要带dd。

		});
		dd.ready(function(){
			if(callback){
				let option = "JSAPI验证成功";
				callback(true,option);
			}
		});
		dd.error(function(error){
			if(callback){
				callback(false,error);
			}
		});
    }



}
module.exports = DingClient;